package utils

import (
	"github.com/gin-gonic/gin"
	"perfect-admin/model/request"
)

func GetClaims(c *gin.Context) *request.CustomClaims {
	claims, exist := c.Get("claims")
	if !exist {
		return &request.CustomClaims{}
	}
	return claims.(*request.CustomClaims)
}

